import 'package:flutter_ability/framework/vm/base_view_model.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

abstract class BaseRefreshViewModel extends BaseViewModel {
  BaseRefreshViewModel({required super.ref});

  /// 刷新控制器
  RefreshController get refreshController => _refreshController;
  final RefreshController _refreshController =
      RefreshController(initialRefresh: false);

  /// 下啦加载
  Future onRefresh();

  /// 加载更多
  Future onLoading();
}
